package com.happy.core.util;

import java.util.Map;

/**
 * @program: happy-shopping-op
 * @description: 微信工具类
 * @author: taoxinhuan
 * @create: 2020-04-02 21:06
 **/
public class WeiXinUtil {
    public static String handUrl(String url, Map<String, String> map) {
        StringBuffer sbf = new StringBuffer(url);
        sbf.append("?");
        map.forEach((key, value) -> {
            String temp = key + "=" + value + "&";
            sbf.append(temp);
        });
        return sbf.toString();
    }
}
